/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.sokoban.controller;

import br.com.sokoban.elements.interfaces.MapCharacters;

/**
 *
 * @author kevinstortz
 */
public class MoveController {
        
    public boolean checkCollision(MapCharacters actor, MapCharacters nextActor) {
        
        if((nextActor.CARACTER == '#')){
            return true;
        }
        
        if ((actor.getY() == nextActor.getY())
                && (actor.getY() == nextActor.getY())) {
            return true;
        }else{
            return false;
        }
    }
}
